package cao.oschina.function.multiple;

import android.view.View;

import cao.oschina.app.AppContext;
import cao.oschina.ui.Main;

/**
 * multiple抽象类
 * <p/>
 * Created by Haidy on 15/3/28.
 */
public abstract class MultipleFunction {

    protected final View view;
    protected final AppContext app;
    protected final Main main;
    protected boolean isLoading = false;
    protected boolean getAll = false;//是否获取全部列表


    public MultipleFunction(View view, Main main) {
        this.view = view;
        this.app = main.app;
        this.main = main;
        initView();
        initData();
    }

    protected abstract void initView();

    protected abstract void initData();
}
